package edu.nf.vac.vaccination.dao;

import edu.nf.vac.vaccination.entity.Vaccination;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author : PYY
 * @create 2022/3/30
 */
public interface VaccinationDao {
    /**
     * 根据区域查询接种点
     * @param areaId
     * @param pageNum
     * @param pageSize
     * @return
     */
    List<Vaccination> listVaccination(@Param("areaId") Integer areaId,
                                      @Param("pageNum") Integer pageNum,
                                      @Param("pageSize") Integer pageSize);

    /**
     * 根据id查询接种点信息
     * @param id
     * @return
     */
    Vaccination getVaccinaionById(Integer id);

    /**
     * 添加接种点
     * @param vaccination
     */
    void saveVaccination(Vaccination vaccination);

    /**
     * 修改接种点
     * @param vaccination
     */
    void updateVaccination(Vaccination vaccination);
}
